<!DOCTYPE html>
<html lang="en">
<head>
    {include file="public/head" title="$templateTitle" /}
</head>

<body class="nav-md">
<div class="container body">
    <div class="main_container">
        {include file="public/menu" /}

        <!-- top navigation -->
        {include file="public/nav" title="$templateTitle"/}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
            {__CONTENT__}
        </div>
        <!-- /page content -->

        <!-- footer content -->
        <!--{include file="public/footer" /}-->
        <!-- /footer content -->
    </div>
</div>

{include file="public/scripts" /}
<script>


    /*未处理订单提示*/
/*    function untreatedOrder(data)
    {
        $("body").showbanner({

            title : "订单",

            icon : "",

            content : "您有新订单未处理，共"+data+"单",
            duration : 300000,
            onClick : function(){
                location.href="/Order/index?status=1";

            },
            addclass : "mybannerstyle1",
            sound : "__PUBLIC__/vendors/banneralert/sms-received1.mp3"

        });
    }*/

/*    function doOrderAjax()
    {
        // 是否具有订单处理权限
        var auth = '{:has_order_auth()}';

        // 如果具有权限，才可以查询订单状态
        if (auth == 1)
        {
            ajaxRequest("/Order/orderTip", {}, function (info, data) {
                if(data>0)
                {
                    untreatedOrder(data);
                }
            })
        }

        auth = '{:has_cash_auth()}';
        if (auth == 1)
        {
            ajaxRequest("/Finance/cashTip", {}, function (info, num) {
                if(num > 0)
                {
                    showCashTip();
                }
            })
        }
    }*/
/*    $(function(){
        setInterval(doOrderAjax(),300000);
    })*/

    // 提现申请提示
    /*
    function showCashTip()
    {
        $.notify({
            // optionsicon: 'glyphicon glyphicon-warning-sign',
            message: '您有新的提现申请，请注意查看！',
            url: '{:url("Finance/withdraw")}',
            target: '_self'
        },{
            // settings
            type: 'success',
            timer: 2000000,
            template: '<div data-notify="container" class="col-xs-11 col-sm-3 alert alert-{0}" role="alert">' +
            '<button type="button" aria-hidden="true" class="close" data-notify="dismiss">×</button>' +
            '<span data-notify="icon"></span> ' +
            '<span data-notify="title">{1}</span><br/> ' +
            '<span data-notify="message">{2}</span>' +
            '<div class="progress" data-notify="progressbar">' +
            '<div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>' +
            '</div>' +
            '<a href="{3}" target="{4}" data-notify="url"></a>' +
            '</div>'
        });
    }*/
</script>
<!-- /gauge.js -->
</body>
</html>
